package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.BasicEntity;
import com.arpa.wms.domain.entity.GoodsUnitConversion;
import com.baomidou.mybatisplus.annotation.TableField;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 期初明细 VO
 * @author jinss
 * @date 2020-10-09 17:50:20
 **/
@Data
@ApiModel(value="InitializationItemVO对象", description="期初明细 VO")
public class InitializationItemVO extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    private String code;

    @ApiModelProperty(value = "所属机构")
    private String groupCode;

    @ApiModelProperty(value = "期初主单号")
    private String initializationCode;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "库区")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "商品code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "单位数量")
    private BigDecimal unitQuantity;

    @ApiModelProperty(value = "占用数量")
    private BigDecimal useQuantity;

    @ApiModelProperty(value = "库位")
    private String location;

    @ApiModelProperty(value = "批次号")
    private String lot;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    private String supplierCode;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "锁定状态")
    private Integer isLock;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态名称")
    private String goodsStatusName;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "库区名称")
    private String warehouseSpaceName;

    @ApiModelProperty(value = "库位名称")
    private String locationName;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "基本单位code")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "基本单位件装量")
    private String basicQuantity;

    @ApiModelProperty(value = "总数量")
    private Long total;

    @ApiModelProperty(value = "单位列表")
    private List<GoodsUnitConversion> goodsUnitConversionList = Lists.newArrayList();


}
